<template>
	<div>
		<MyButton></MyButton>
		<MyButton @click="clickMyButton" value="添加" :custom-style="{color:'red'}"></MyButton>

	</div>
</template>

<script setup lang="ts">
	import { onMounted, ref } from 'vue';
	import type { Ref } from 'vue';
	import MyButton from '../components/MyButton.vue'
	import { asyncHttp } from '../common/request';
	import type { student, studentResult } from '../common/data/student';
	import { useselectPage } from '../common/common';
	const { form, dataList, total, selectUrl, visible, selectList } = useselectPage();
	selectUrl.value = "/student/login";

	const title1 = ref();
	const title : Ref<string | number | undefined> = ref();
	title1.value = true;

	const clickMyButton = async (value : number) => {
		console.log(value);
		let result = await asyncHttp<studentResult>("/student/login", "get", { id: 1 });
		console.log(result.dataList);
	}
</script>

<style>
</style>